//
//  LocationProfile.h
//  playSerengetiMobile1
//
//  Created by Lita Gratrix on 12/11/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "User.h"
#import "Team.h"
#import "Location.h"
#import "TeamProfile.h"
#import "playSerengetiMobile1AppDelegate.h"


@interface LocationProfile : UIViewController <UITableViewDataSource, UITableViewDelegate>{
	NSInteger locationId;
	
	UILabel *locationNameLabel;
	UILabel *addressLineOneLabel;
	UILabel *addressLineTwoLabel;
	UILabel *phoneNumberLabel;
	UILabel *teamLeaderLabel;
	UITableView *locationProfileTableView;
	
	NSMutableData *responseData;
	
	Location *profile;
	NSMutableArray *competingTeams;
	
	NSMutableArray *tableSourceArray;
	playSerengetiMobile1AppDelegate *appDelegate;
}

@property (nonatomic, readwrite) NSInteger locationId;
@property (nonatomic, retain) IBOutlet UILabel *locationNameLabel;
@property (nonatomic, retain) IBOutlet UILabel *addressLineOneLabel;
@property (nonatomic, retain) IBOutlet UILabel *addressLineTwoLabel;
@property (nonatomic, retain) IBOutlet UILabel *phoneNumberLabel;
@property (nonatomic, retain) IBOutlet UILabel *teamLeaderLabel;
@property (nonatomic, retain) IBOutlet UITableView *locationProfileTableView;

@property (nonatomic, retain) Location *profile;
@property (nonatomic, retain) NSMutableArray *competingTeams;

@property (nonatomic, retain) NSMutableArray *tableSourceArray;
@property (nonatomic, retain) playSerengetiMobile1AppDelegate *appDelegate;

- (void)populateViewData:(NSDictionary *)parsedData;
- (void)populateCompetingTeams:(NSMutableArray *)competingTeamsArray;

@end
